package com.robcity.platform.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @Author zhangsong
 * @Date 2024/8/10
 **/
@Getter
@AllArgsConstructor
public enum RobNameEnum {
    ONE("1", "AIRS巡逻车","无人车","AQC"),
    TWO("2", "宇树Go1","机器狗","SBG"),
    THREE("3", "CyberDog","机器狗","SBG"),
    FOUR("4", "大疆御3E","无人机","WRJ"),
    FIVE("5", "roBox安全车","无人车","WRC"),
    SIX("6", "pepper","人型机器人","JQR");

    private final String code;

    private final String name;
    private final String type;
    private final String icon;

    public static RobNameEnum getByCode(String code) {
        for (RobNameEnum value : RobNameEnum.values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

}
